<!-- 班级信息页面 -->
<% include header.ejs %>
    <div class="classmsg" ng-controller="classmsgController">
        <div class="classcontain">
            <%if(classes.length != 0){%>
                <div class="select">
                    <label>请选择要查看的班级</label>
                    <select ng-init="classes=<%=classes%>;current=<%=classes[0].className%>" ng-model="current" ng-options="x.className for x in classes"
                        ng-change="selectchange()">
                    </select>

                </div>
                <div class="table">
                    <div class="caption">班级信息</div>
                    <table>
                        <tr>
                            <td class="odd">班级名称</td>
                            <td class="even">
                                <input type="text" ng-model="className">
                            </td>
                            <td class="odd">人数</td>
                            <td class="even">
                                <input type="text" ng-model="personCount">
                            </td>
                            <td class="odd">班主任</td>
                            <td class="even">
                                <input type="text" ng-model="chargeTeacher">
                            </td>
                        </tr>
                        <tr>
                            <td>授课老师</td>
                            <td>
                                <input type="text" ng-model="teachTeacher">
                            </td>
                            <td>就业老师</td>
                            <td>
                                <input type="text" ng-model="jobTeacher">
                            </td>
                            <td>助教</td>
                            <td>
                                <input type="text" ng-model="assistant">
                            </td>
                        </tr>
                        <tr>
                            <td>班级状态</td>
                            <td>
                                <input type="text" ng-model="classStatus">
                            </td>
                            <td>教室地址</td>
                            <td>
                                <input type="text" ng-model="classAddress">
                            </td>
                            <td>课程名称</td>
                            <td>
                                <input type="text" ng-model="courseName">
                            </td>
                        </tr>
                        <tr>
                            <td>开课日期</td>
                            <td>
                                <input type="text" ng-model="startDate">
                            </td>
                            <td>正课日期</td>
                            <td>
                                <input type="text" ng-model="officialDate">
                            </td>
                            <td>结束日期</td>
                            <td>
                                <input type="text" ng-model="endDate">
                            </td>
                        </tr>
                    </table>
                </div>
                <%}else{%>
                    <h1>您还没有添加班级，快去添加吧</h1>
                    <%}%>
        </div>
        <div class="studentlist">
            <div class="table">
                <div class="caption">学员信息</div>
                <table>
                    <tr>
                        <th>班级学员</th>
                        <th>学员状态</th>
                        <th>入班时间</th>
                        <th>离班时间</th>
                    </tr>
                    <tr ng-repeat="currentstudent in students">
                        <td><a href="/users/persondata?studentNo={{currentstudent.studentNo}}">{{currentstudent.name}}</a></td>
                        <td>{{currentstudent.studyStatus}}</td>
                        <td>{{currentstudent.joinDate}}</td>
                        <td>{{currentstudent.gradDate}}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>